-- GENERATED SPELL FOR [Hulking Jormungar] --


function spell0_26293(pUnit, Event) --@Corrosive Poison,n/a--
pUnit:FullCastSpellOnTarget(50293,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_26293', 13500, 1)
end

function spell1_26293(pUnit, Event) --@Corrosive Spit,n/a--
pUnit:FullCastSpellOnTarget(47611,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_26293', 15000, 1)
end

function Sorts_26293(pUnit, Event)
local choix_sorts_26293 = math.random(0, 1)
if choix_sorts_26293 == 0 then
pUnit:RegisterEvent('spell0_26293', 1, 1)
end
if choix_sorts_26293 == 1 then
pUnit:RegisterEvent('spell1_26293', 1, 1)
end
end

function mob26293_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_26293', math.random(1500, 3000), 1)
end

function mob26293_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob26293_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob26293_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(26293, 1, 'mob26293_Action')
RegisterUnitEvent(26293, 2, 'mob26293_Leave')
RegisterUnitEvent(26293, 3, 'mob26293_Kill')
RegisterUnitEvent(26293, 4, 'mob26293_Die')
